// export const upload = (params, config = {}) => uni.$uv.http.post('/api/common/upload', params, config)


// export const upload = (params, config = {}) => uni.$uv.http.upload('/api/common/upload', params, config)
export const upload = (params, config = {}) => uni.$uv.http.upload('/api/common/upload', params, config)

export const login = (params, config = {}) => uni.$uv.http.post('/api/user/login', params, config)
export const indexOcr = (params, config = {}) => uni.$uv.http.post('/api/index/ocr', params, config)
export const createOrder = (params, config = {}) => uni.$uv.http.post('/api/index/createOrder', params, config)


export const userInfo = (data) => uni.$uv.http.get('/api/user/userInfo', data)
export const orderList = (data) => uni.$uv.http.get('/api/index/orderList', data)
export const orderDetail = (data) => uni.$uv.http.get('/api/index/orderDetail', data)
export const totalData = (data) => uni.$uv.http.get('/api/index/totalData', data)

export const getParam = (data) => uni.$uv.http.get('/api/index/getParam', data)
export const workCategory = (data) => uni.$uv.http.get('/api/index/workCategory', data)

export const level = (data) => uni.$uv.http.get('/api/index/level', data)